package cn.rengy.web.framework.wxmp.pay;

import java.io.Serializable;
import java.math.BigDecimal;

import cn.rengy.tpa.wxmp.util.WXPayConstants;
import cn.rengy.web.framework.wxmp.WxMerchant;
import lombok.Getter;
import lombok.Setter;
/**
 * 创建订单业务对象
 * @author rengy
 *
 */
@Getter
@Setter
public class WxPayOrderDo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String business_type;
	
	private WxMerchant wxMerchant;
	
	public String getBusiness_type() {
		return business_type;
	}
	public void setBusiness_type(String business_type) {
		this.business_type = business_type;
	}
	private Long user_id;
	private String order_id;//业务订单id
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	private String appid;
	/**必填：商户号*/
	private String mch_id;
	
	/**必填：商品简单描述*/
	private String body;
	
	/**必填：商户系统内部的订单号,32个字符*/
	private String out_trade_no;
	
	/**必填：订单总金额，单位为分*/
	private BigDecimal amount;
	
	/**必填：用户端IP,支持ipv4、ipv6格式*/
	private String spbill_create_ip;
	/**是否需要分账**/
	private WXPayConstants.IsProfitSharing profit_sharing;
	
	/**商品标记，代金券或立减优惠功能的参数*/
	private String goods_tag;
	
	
	
	/**
		JSAPI -JSAPI支付
		NATIVE -Native支付
		APP -APP支付
		H5  -MWEB*/
	private WXPayConstants.TradeType trade_type;
	
	/**trade_type=NATIVE，此参数必传。此id为二维码中包含的商品ID，商户自行定义。*/
	private String product_id;
	
	/**指定支付方式no_credit--指定不能使用信用卡支付*/
	private WXPayConstants.LimitPayType limit_pay;
	
	private String openid;

	/**电子发票入口开放标识,传入Y时，支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能，传此字段才可生效*/
	private String receipt;
	
	
	
	private String scene_info;
	
	
	
	
	
}
